package com.yx.mapper;

import com.yx.entity.SysUserRole;
import com.yx.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
/**
 * @Description: 用户角色
 * @Auther: zcz
 * @create 2020/4/16 11:51
 */
@Repository
@Mapper
public interface SysUserRoleMapper  extends BaseMapper<SysUserRole> {

    List<SysUserRole> getUserRoleByUserId(String userId);

    SysUserRole getInfoByPrimaryKey(String userId,String roleId);
}